<div class='fui-page  fui-page-current article-index-page' ng-if="pagedata.op=='detail'">
	<div class='fui-content' style="margin-bottom:2.5rem">
		<div class="fui-article-page">
			<div class="fui-article-title">{{pagedata.item.title}}</div>
			<div class="fui-article-subtitle"><a>{{pagedata.worker.name}}</a> <span class="r-f">发布时间: {{pagedata.item.createtime}}</span></div>
			<div class="fui-cell-group radius" style="padding:0.5rem;border-radius:0.5rem;background:#f2f2f2;">
				<div class="fui-cell" style="padding:0;">
					<div class="fui-cell-label" style="width:auto;">
						<img style="border-radius: 50%;width:2rem;height:2rem" ng-src="{{tomedia(pagedata.worker.headimg) || '../core/resource/images/gw-user.png'}}" />
					</div>
					<div class="fui-cell-text" style="font-size:0.7rem">
						<div class="bold">{{pagedata.worker.name}}</div>
						<div class="subtitle" style="font-size:0.6rem"></div>
					</div>
					<div class="fui-cell-remark noremark" style="font-size:0.7rem">
						<span href="javascript:" ng-click="pagedata.setfollow();" class="jylabel jylabel-success" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">{{pagedata.isfollow==1?'取消关注':'关注TA'}}</span>
					</div>
				</div>		
			</div>
			<div class="fui-article-content" ng-bind-html="trust(pagedata.item.content)"></div>
			<div class="fui-article-subtitle">
				<div class="nav"><i class="fa fa-user"></i> {{pagedata.item.readnum}} </div>
				<div class="nav padding">
					<i class="fa fa-heart" style="color:red" ng-show="pagedata.islike==1" ng-click="pagedata.item.likenum=pagedata.item.likenum-1;pagedata.islike=0;pagedata.setlike()"></i>
					<i class="fa fa-heart" style="color:gree" ng-show="pagedata.islike!=1" ng-click="pagedata.item.likenum=pagedata.item.likenum+1;pagedata.islike=1;pagedata.setlike()"></i>
					<span>{{pagedata.item.likenum}}</span>
				</div>
			</div>
			<div style="padding:0.5rem;">
				<div class="top" style="margin-bottom:-1.3rem;z-index:108">
					<div class="c">
							<img style="width:3rem;height:3rem;border-radius:100%" src="{{tomedia(pagedata.worker.headimg) || '../core/resource/images/gw-user.png'}}"  />
					</div>
				</div>
				<div class="fui-code" style="background:#C03E3E;border-radius: 0.5rem;padding-bottom:1rem">		
					 <div class="fui-line-title" style="padding-top:1.3rem;color:#f2f2f2;">
							<div class="bold">{{pagedata.worker.name}}</div>
					</div>
					<div class="fui-line-title" style="text-align:left;padding-top:1rem;padding-left:3rem;line-height:1.8;">
						<div class="text-danger" style="color:#f2f2f2;font-size:0.7rem">
							所属：<span>{{pagedata.store.title}}</span> 
						</div>
						<div class="text-danger" style="color:#f2f2f2;font-size:0.7rem">
							地址：<span>{{pagedata.store.address}}</span> 
						</div>
					</div>
					<div class="content-empty" style="margin-top:0.5rem;">
						<a class='btn btn-sm btn-default' href="tel:{{pagedata.worker.mobile}}"  style="border-radius: 1rem;width:5rem;margin:0 0.3rem">
							<i class="icon icon-phone" style="font-size:0.75rem"> 打电话</i> 
						</a>
						<a class='btn btn-sm btn-default' style="border-radius: 1rem;width:5rem;margin:0 0.3rem" ng-click="tool.clip(pagedata.worker.wechat)">
							<i class="icon icon-weixin-copy" style="font-size:0.75rem"> 加微信</i> 
						</a>
					</div>
				</div>
			</div>
		</div>
		
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
scope.pagedata.setlike=function(){
	scope.post_json('jy_yiliao/worker_news/like/',{'id':scope.pagedata.item.id},function(res){
		scope.message(res)
	});
}
scope.pagedata.setfollow=function(){
	scope.post_json('jy_yiliao/worker_news/follow/',{'id':scope.pagedata.item.id},function(res){
		scope.message(res)
	});
}
</script>